<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@page import="modelo.mAdministrador"%>
<%@page import="java.util.Date"  %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% java.util.Calendar fecha = java.util.Calendar.getInstance();
	String cadena = fecha.get(java.util.Calendar.DATE) + "/"  + fecha.get(java.util.Calendar.MONTH)    + "/"  + fecha.get(java.util.Calendar.YEAR);
	HttpSession sessionActual = request.getSession(true);
	sessionActual.isNew();
	/*if(sessionActual.getAttribute("Usuario") == null){
		response.sendRedirect("salir.html");
	}
	System.out.println(sessionActual.getAttribute("Usuario"));*/
	mAdministrador mAd = (mAdministrador) sessionActual.getAttribute("Usuario");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sistema de Venta Planes de Negocio</title>
<link REL=StyleSheet HREF="css/style.css" title="Contemporaneo"/>
<script language="javascript" type="text/javascript" src="js/jsSabio.js"></script>
</head>
<body>
	<!-- Cabecera -->
    <div class="cabecera">
    	<table border="0" cellpadding="0" cellspacing="0" width="95%">
        	<tr>
            	<td width="80%"><div class="titulo">Sistema Venta de Planes de Negocio</div></td>
                <td width="20%" style="text-align:right">
                	<img src="images/ver_mas.png" alt="Mas Informacion" style="cursor:pointer" />
                    <a href="salir.html"><img src="images/close.png" alt="Salir" style="cursor:pointer" /></a>
                </td>
            </tr>
        </table>
    </div>
	<div class="dtSesion">
		<table border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr>
				<td width="10%" style="min-width:35px !important; max-width:45px !important;" align="center"><img src="images/user.png"/></td>
				<td valign="top">Administrador:<br/> <b><span class="spUsuario"><% out.print(mAd.getNombre()); %></span></b></td>
				<td valign="top">Fecha: <b><% out.print(cadena); %></b></td>
				<td valign="top" style="width:30px;"><a href="sabios.html?ind=M"><img src="images/regresar.png" alt="Menu"/></a></td>
			</tr>
		</table>
	</div>
	<div class="cuerpo">
		<!-- Opcion nuevo -->
		<div class="opcionNuevo"><a href="sabios.html?ind=1"><img src="images/cancelar.png" alt="Agregar Plan"/></a></div>
		<div class="pestaniaTitulo">SABIOS | <span class="subModulo">Registro</span></div><!-- Titulo -->
		<div class="contenido"><!-- proyRegSabio -->
			<form name="frmSabio" action="regSabio.html" method="post">
			<center>
			<table border="0" cellpadding="0" cellspacing="0" width="80%">
  <tr>
					<td valign="top" class="etiForm" style="min-width:100px !important; width:30%">Nombre</td>
			  <td valign="top" class="etiForm" style="width:15px; font-weight:bold">:</td>
			  <td class="etiFormText" style="min-width:185px !important;">
						<input type="text" name="txNombre" class="texto" style="min-width:180px !important; width:98%" alt="Nombre" onkeypress="return jf_letras(event)"/>
                        <div id="dvtxNombre" class="lblError"></div>
		    </td>
				</tr>
				<tr>
					<td valign="top" class="etiForm" style="min-width:100px !important; width:30%">Ape. Paterno</td>
					<td valign="top" class="etiForm" style="width:15px; font-weight:bold">:</td>
			  <td class="etiFormText" style="min-width:185px !important;">
						<input type="text" name="txPaterno" class="texto" style="min-width:180px !important; width:98%" alt="Apellido Paterno" onkeypress="return jf_letras(event)"/>
                        <div id="dvtxPaterno" class="lblError"></div>
				  </td>
				</tr>
				<tr>
					<td valign="top" class="etiForm" style="min-width:100px !important; width:30%">Ape. Materno</td>
					<td valign="top" class="etiForm" style="width:15px; font-weight:bold">:</td>
			  <td class="etiFormText" style="min-width:185px !important;">
						<input type="text" name="txMaterno" class="texto" style="min-width:180px !important; width:98%" alt="Apellido Materno" onkeypress="return jf_letras(event)"/>
                        <div id="dvtxMaterno" class="lblError"></div>
				  </td>
				</tr>
				<tr>
					<td valign="top" class="etiForm" style="min-width:100px !important; width:30%">Sexo</td>
					<td valign="top" class="etiForm" style="width:15px; font-weight:bold">:</td>
			  <td class="etiFormText" style="min-width:185px !important;">
						<input type="radio" value="M" checked name="rdSexo" onclick="document.getElementById('hdrdSexo').value='M'"/>&nbsp;&nbsp;<span class="etiForm">Masculino </span>&nbsp;&nbsp;
						<input type="radio" value="F" name="rdSexo" onclick="document.getElementById('hdrdSexo').value='F'"/>&nbsp;&nbsp;<span class="etiForm">Femenino </span>
                        <input type="hidden" id="hdrdSexo" name="hdrdSexo" value="M" alt="Sexo" />
                        <div id="dvhdrdSexo" class="lblError"></div>
				  </td>
				</tr>
				<tr>
					<td valign="top" class="etiForm">T. Doc. Identidad</td>
					<td valign="top" class="etiForm" style="font-weight:bold">:</td>
			  <td class="etiFormText">
						<select name="slDocI" class="texto" style="width:200px !important;" onchange="txDNI.value = ''; document.getElementById('dvtxDNI').innerHTML = '';" title="Tipo Documento" >
							<option value="">::Seleccionar::</option>
							<option value="1">DNI</option>
							<option value="2">LE</option>
							<option value="3">Otros</option>
						</select>
                        <div id="dvslDocI" class="lblError"></div>
				  </td>
				</tr>
				<tr>
					<td valign="top" class="etiForm">N. Doc. Identidad</td>
					<td valign="top" class="etiForm" style="font-weight:bold">:</td>
			  <td class="etiFormText">
						<input type="text" name="txDNI" class="textoNumero" style="width:200px !important;" alt="Numero Documento" onkeypress="return jf_numeros(event)" />
						<div id="dvtxDNI" class="lblError"></div>
					</td>
				</tr>
				<tr>
					<td valign="top" class="etiForm" style="min-width:100px !important; width:30%">Correo</td>
					<td valign="top" class="etiForm" style="width:15px; font-weight:bold">:</td>
			  <td class="etiFormText" style="min-width:185px !important;">
						<input type="text" name="txEmail" class="texto" style="min-width:180px !important; width:98%" alt="Email"/>
                        <div id="dvtxEmail" class="lblError"></div>
				  </td>
				</tr>
				<tr>
					<td valign="top" class="etiForm">N. Celular</td>
					<td valign="top" class="etiForm" style="font-weight:bold">:</td>
			  <td class="etiFormText">
						<input type="text" name="txCelu" class="textoNumero" style="width:200px !important;" alt="Celular" onkeypress="return jf_numeros(event)"/>
                        <div id="dvtxCelu" class="lblError"></div>
				  </td>
				</tr>
				<tr>
					<td valign="top" class="etiForm" style="min-width:100px !important; width:30%">Direcci&oacute;n</td>
					<td valign="top" class="etiForm" style="width:15px; font-weight:bold">:</td>
			  <td class="etiFormText" style="min-width:185px !important;">
						<input type="text" name="txDirec" class="texto" style="min-width:180px !important; width:98%" alt="Direccion"/>
                        <div id="dvtxDirec" class="lblError"></div>
				  </td>
				</tr>
				<tr>
					<td valign="top" class="etiForm">F. Nacimiento</td>
					<td valign="top" class="etiForm" style="font-weight:bold">:</td>
			  <td class="etiFormText">
						<input type="text" name="txFNac" class="textoFecha" style="width:100px !important;" maxlength="10" alt="Fecha Nacimiento" onkeypress="return jf_fecha(event)"/>
						<span class="spComentario">aaaa / mm / dd</span>
                        <div id="dvtxFNac" class="lblError"></div>
				  </td>
				</tr>
				<tr>
					<td valign="top" class="etiForm">Contrase&ntilde;a</td>
					<td valign="top" class="etiForm" style="font-weight:bold">:</td>
			  <td class="etiFormText">
						<input type="password" name="txPwd" class="texto" style="width:200px !important;" alt="Contrase&ntilde;a"/>
                        <div id="dvtxPwd" class="lblError"></div>
				  </td>
				</tr>
			</table>
			<div class="bloqOperacion"></div>
			<table border="0" cellpadding="0" cellspacing="0" width="80%">
		  <tr>
					<td valign="top" class="etiForm" style="min-width:100px !important; width:30%">Apelativo</td>
				  <td valign="top" class="etiForm" style="width:15px; font-weight:bold">:</td>
			  <td class="etiFormText" style="min-width:185px !important;">
						<input type="text" name="txApelativo" class="texto" style="min-width:180px !important; width:98%" alt="Apelativo" onkeypress="return jf_letras(event)"/>
                        <div id="dvtxApelativo" class="lblError"></div>
		    </td>
				</tr>
				<tr>
					<td class="etiForm" style="min-width:100px !important; width:30%" valign="top">Resumen Autobiogr&aacute;fico</td>
					<td class="etiForm" style="font-weight:bold" valign="top">:</td>
					<td class="etiFormText" style="min-width:185px !important;" valign="top">
						<textarea name="txResumen" class="texto" style="min-width:180px !important; width:98%" rows="4" alt="Resumen Autobiografico"></textarea>
                        <div id="dvtxResumen" class="lblError"></div>
				  </td>
				</tr>
				<tr>
					<td valign="top" class="etiForm" style="min-width:100px !important; width:30%">Sitio Web</td>
				  <td valign="top" class="etiForm" style="font-weight:bold">:</td>
			  <td class="etiFormText" style="min-width:185px !important;">
						<input type="text" name="txSitio" class="texto" style="min-width:180px !important; width:98%" alt="Sitio Web"/>
                        <div id="dvtxSitio" class="lblError"></div>
				  </td>
				</tr>
				<tr>
					<td valign="top" class="etiForm">Banco</td>
				  <td valign="top" class="etiForm" style="font-weight:bold">:</td>
			  <td class="etiFormText">
						<select name="txBanco" class="texto" style="width:200px !important;" alt="Banco">
							<option value="0">::Seleccionar::</option>
							<c:forEach items="${BANCO}" var="ban">
								<option value="${ban.getIdBanco()}">${ban.getTxBanco()}</option>
							</c:forEach>
						</select>
                        <div id="dvtxBanco" class="lblError"></div>
				  </td>
				</tr>
				<tr>
					<td valign="top" class="etiForm" style="min-width:100px !important; width:30%">Cta. Cte.</td>
				  <td valign="top" class="etiForm" style="font-weight:bold">:</td>
			  <td class="etiFormText" style="min-width:185px !important;">
						<input type="text" name="txCtaCte" class="texto" style="min-width:180px !important; width:98%" alt="Cta. Cte." onkeypress="return jf_fecha(event)"/>
                        <div id="dvtxCtaCte" class="lblError"></div>
				  </td>
				</tr>
			</table>
			</center>
			<div class="bloqOperacion">
				<input type="button" value="Grabar" class="boton" style="margin-top:3px;" onclick="if(dtObligatorios('frmSabio')==true){ frmSabio.submit(); }"/>
			</div>
			</form>
		</div>
	</div>
	<!-- Pie -->
    <div class="pie"><b>Sistema de Ventas de Planes de Negocio</b> <br />Derechos reservados &reg; <b>Eduardo Gonzales</b> - 2012</div>
</body>
</html>